<template>
  <div class="app">
    <router-view />
    <!--     <div class="tabbar">
    <router-link to="/index/home">首页</router-link>
    <router-link to="/index/baobaotuan">爆爆团</router-link>
    <router-link to="/index/order">订单</router-link>
    <router-link to="/index/mine">我的</router-link>
  </div> -->
    <van-tabbar v-model="active" route>
      <van-tabbar-item icon="home-o" to="/index/home">首页</van-tabbar-item>
      <van-tabbar-item icon="fire-o" to="/index/baobaotuan"
        >爆爆团</van-tabbar-item
      >
      <van-tabbar-item icon="orders-o" to="/index/order">订单</van-tabbar-item>
      <van-tabbar-item icon="user-o" to="/index/mine">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { ref } from 'vue';

export default {
  setup() {
    const active = ref(0);
    return { active };
  },
};
</script>

<style>
.app {
  position: relative;
}

</style>